package com.susu.zookeeper.curator.controller;

import com.susu.zookeeper.curator.service.ZookeeperService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 苏苏
 * @date 2020/11/6 16:24
 **/
@RequestMapping("/zk/")
@RestController
public class ZookeeperController {

    @Autowired
    private ZookeeperService zookeeperService;

    @GetMapping("test")
    public boolean zkTest() {
        zookeeperService.testLock2("hello");
        return true;
    }
}
